import http from '@/libs/http'
//  解锁屏幕
export const checkLogin = (params) => {
  return http.fetchPost('admin/profile/checkLogin', params)
}

//  解锁屏幕
export const unlock = (params) => {
  return http.fetchPost('admin/profile/unlock', params)
}

//  更新个人资料
export const update = (params) => {
  return http.fetchPost('admin/profile/update', params)
}

export const logout = (params) => {
  return http.fetchPost('admin/profile/logout', params)
}

export const resetPassword = (params) => {
  return http.fetchPost('admin/profile/resetPassword', params)
}
let dataApi = {
  checkLogin: checkLogin,
  unlock: unlock,
  logout: logout,
  update: update,
  resetPassword: resetPassword
}
export default dataApi
